package com.bilgeadam.javaweb.model;

/**
 *
 * @author Bora SAYINER
 * @since Dec 27, 2014 4:02:45 PM
 * @version 1.0
 */
public class Authenticator {

	private final String userName;
	private final String password;

	public Authenticator(String userName, String password) {
		this.userName = userName;
		this.password = password;
	}

	public String authenticate(String userName, String password) {
		String action = null;
		if (this.userName.equals(userName) && this.password.equals(password)) {
			action = "success";
		} else {
			action = "fail";
		}
		return action;
	}
}
